﻿using System;
using System.Web;
using System.Web.UI.WebControls;
using System.Data;
using BySoft.Server.Business;
using BySoft.Server.Common.Entity;
using BySoft.Server.Common.Enum;
using BySoft.Web.Utility;
using BySoft.Server.Consts;
using BySoft.Server.Common;
using BySoft.Web.Controls;

namespace TaiChySystem.Web.Site.ComPage
{
    public partial class ViewPic : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string strUrl ="";
            DataTable dt = MdProduct.SelectPicPath(UIHelper.GetQueryStringValue("url").Trim());
            if (dt != null && dt.Rows.Count > 0)
            {
                strUrl = dt.Rows[0]["FileURL"].ToString();

            }
            if (Session["PicPath"] != null && !string.IsNullOrEmpty(Session["PicPath"].ToString().Trim()))
            {
                strUrl = Session["PicPath"].ToString().Trim();
            }
            imgPicture.ImageUrl = strUrl;
            Session["PicPath"] = null;
        }
    }
}